<?php
namespace backend\models;

use yii\base\Model;
use yii\web\UploadedFile;

class UploadForm extends Model
{
    /**
     * @var UploadedFile
     */
    public $xlsFile;
    const PATHFILE='uploads/';

    public function rules()
    {
        return [
            [['xlsFile'], 'file'],
            [['xlsFile'], 'file', 'skipOnEmpty' => false],
            [['xlsFile'], 'file', 'extensions' => 'xls, xlsx'],
        ];
    }

}
?>